{literal}
<script type="text/javascript">
<!--
    function showhide(el)
    {
        if (document.getElementById(el).style.display == 'none')
        {
            document.getElementById(el).style.display = '';
        }
        else
        {
            document.getElementById(el).style.display = 'none';
        }
    }
//-->
</script>
{/literal}
<table style="width:100%;" class="forumline" cellspacing="0">
<tr>
    <td class="row-header" colspan="3"><span>{language text="theme_style_sheets"}</span></td>
</tr>
<tr>
    <td class="catBottom" colspan="3">
        {language text="below_is_a_list_of_the_current_styl"}
    </td>
</tr>
<tr>
	<th>{language text="style_name"}</th>
	<th>{language text='Mod_Site.layout'}</th>
	<th>{language text="actions_567"}</th>
</tr>
{foreach from=$aItems key=iKey item=aItem name=aitems}
<tr>
	<td class="row1">
	{$aItem.name}
	</td>
	<td class="row1">
	{$aItem.layout}
	</td>
	<td class="row1">
	{if !$aItem.default}
	<a class="link_action" href="{url link='admin.config.style' setdefault=$aItem.id}">[ {language text="set_as_default"} ]</a>
  	&nbsp;
	<a class="link_action" onclick="return confirm('{language text="do_you_really_want_to_delete_this_s"}');" href="{url link='admin.config.style' delete=$aItem.id}">[ {language text="delete"} ]</a>
  	&nbsp;
	{/if}
	<a class="link_action"{if !$aItem.can_edit} style="color:red;" {/if}href="javascript:void(0);" onclick="javascript:{if !$aItem.can_edit}alert('{language text='Mod_Site.unable_to_edit' replace=$aItem.full_location}');{else}popUp2('{url link='admin.popup.styleeditor' id=$aItem.id}','600','500','yes','100','100');{/if}">[ {language text="edit_css"} ]</a>
	&nbsp;
	<a class="link_action" href="javascript:void(0);" onclick="javascript:popUp2('{url link='admin.popup.stylelogo' id=$aItem.id}','400','400','yes','100','100');">[ {language text="change_logo"} ]</a>
	&nbsp;
	<a class="link_action" href="javascript:void(0);" onclick="showhide('css_{$aItem.id}');">[ {language text="edit_name"} ]</a>
	<div style="padding:10px;display:none;" id="css_{$aItem.id}">
	<form method="post" action="{url link='admin.config.style' id=$aItem.id}" style="margin:0px;">
		<input type="text" name="name" value="{$aItem.name}" size="30" />
		<input type="submit" name="act[update]" value="{language text="update"}" />
	</form>
	</div>
	</td>
</tr>
{/foreach}
</table>